from flask import Blueprint
from flask import request


def root() -> str:
    print(request.form)

    print('str:', request.data.decode())
    return 'root'


index = Blueprint('web', __name__)
index.add_url_rule('/', view_func=root, methods=['GET', 'POST'])
